<h1>Listing size_types</h1>

<table class="table">
	<tr>
		<th>Type</th>
		<th>Sizes</th>
		<th></th>
		
	</tr>

	<% @size_types.each do |type| %>
	<tr>
		<td><%= type.name %></td>
		<td> <% type.sizes.each do |size| %>
				<%= size.name %>
			<% end %> 
		</td>
		<td><%= link_to 'Show', type %>
		<%= link_to 'Edit', edit_size_type_path(type) %>
		<%= link_to 'Destroy', type, method: :delete, data: { confirm: 'Are you sure?' } %></td>
	</tr>
	<% end %>
</table>

<br />

<%= link_to 'New Size type', new_size_type_path, :class => "btn btn-default"  %>
